<?php
/**
 * Created by PhpStorm.
 * User: Dick
 * Date: 2016/4/14
 * Time: 2:19
 */

namespace Method;


class Validata
{
    private static $instance;

    public static function getInstance(){
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }
    private function __construct()
    {
    }

    public static function isEmail($name){
        $result = filter_var($name,FILTER_VALIDATE_EMAIL);
        return $result;
    }
}